<h1><?php echo $title;?></h1>

<?php
echo form_open_multipart('cstudresult/edit');
echo "<table class='table-manipulate'>";
echo "<tr><td><label for='pname'>Result type</label></td>";
echo "<td>";
$data = array('name'=>'result_type','id'=>'result_type','size'=>25, 'value'=>$studresult['result_type']);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='result_src_edit'>Upload Image</label></td>";
echo "<td>";
$data = array('name'=>'result_src','class'=>'image-edit' ,'id'=>'result_src_edit');
echo form_upload($data);
echo "<a href='#' class='cancel'>Cancel</a>";
echo "<img title='change image' class='img-change' style='style:width:80px; height:80px;'  src=".base_url().'images/studresult/'.$studresult['result_src']." /></p>";
echo "</td></tr>";

echo "<tr><td><label for='semester'>Semester</label></td>";
echo "<td>";
$options = array('I' => 'I', 'II' => 'II');
echo form_dropdown('semester',$options, $studresult['semester'],'style="width:105px;height:25px; padding:2px;"');
echo "</td></tr>";

echo "<tr><td><label for='shift'>Shift</label></td>";
echo "<td>";
echo form_dropdown('shift_id',$shifts,$studresult['shift_id'],'style="width:105px;height:25px; padding:2px;"');
echo "</td></tr>";

echo "<tr><td><label for='group'>Group</label></td>";
echo "<td>";
$data = array('name'=>'group','id'=>'group','size'=>10,'value'=>$studresult['group']);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='batch'>Batch</label></td>";
echo "<td>";
$data = array('name'=>'batch','id'=>'batch','size'=>10,'value'=>$studresult['batch']);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='year'>Year</label></td>";
echo "<td>";
$data = array('name'=>'year','id'=>'year','size'=>10,'value'=>$studresult['year']);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='activate'>Activate</label></td>";
echo "<td>";
$options = array('1' => 'active', '0' => 'inactive');
echo form_dropdown('activate',$options, $studresult['activate'],'style="width:105px;height:25px; padding:2px;"');
echo "</td></tr>";
echo "</table>";
echo form_hidden('student_result_id',$studresult['student_result_id']);
echo form_submit(array('class'=>'btn','name'=>'submit'),'Update Student Result');
echo form_close();


?>